const routes = [{
  path: "/main", component: () => import("layouts/MainLayout.vue"), meta: {
    requireAuth: true,
  }, children: [{
    path: "", meta: {title: "应用列表"}, component: () => import("pages/IndexPage.vue"),
  }, {
    path: "/DevicePage",
    meta: {title: "操作面板", back: "/main"},
    component: () => import("pages/application/DevicePage.vue"),
  }, {
    path: "/RemoteControl",
    meta: {title: "远程遥控", back: "/main", whiteList: true},
    component: () => import("pages/remote/RemoteControl.vue"),
  }, {
    path: "/RemoteManage",
    meta: {title: "远程控制", back: "/main"},
    component: () => import("pages/remote/RemoteManage.vue"),
  }, {
    path: "/AmrControl", meta: {title: "设备控制", back: "/main"}, component: () => import("pages/amr/AmrControl.vue"),
  }, {
    path: "/MapIndex", meta: {title: "地图管理", back: "/main"}, component: () => import("pages/map/IndexPage.vue"),
  }, {
    path: "/PostureIndex",
    meta: {title: "姿态管理", back: "/main"},
    component: () => import("pages/posture/IndexPage.vue"),
  }, {
    path: "/LogIndex", meta: {title: "设备日志", back: "/main"}, component: () => import("pages/logger/IndexPage.vue"),
  }, {
    path: "/UserIndex", meta: {title: "用户管理", back: "/main"}, component: () => import("pages/user/IndexPage.vue"),
  }, {
    path: "/MapCreate",
    meta: {title: "地图创建", back: "/MapIndex"},
    component: () => import("pages/map/MapCreate.vue"),
  }, {
    path: "/MapEdit", meta: {back: "/MapIndex"}, component: () => import("pages/map/MapEdit.vue"),
  }, {
    path: "/RouteManage",
    meta: {title: "路径管理", back: "/PostureIndex"},
    component: () => import("pages/posture/RouteManage.vue"),
  }, {
    path: "/StorageManage",
    meta: {title: "库位管理", back: "/PostureIndex"},
    component: () => import("pages/posture/StorageManage.vue"),
  }, {
    path: "/BoundManage",
    meta: {title: "绑定关联", back: "/PostureIndex"},
    component: () => import("pages/posture/BoundManage.vue"),
  }, {
    path: "/PostureConnect",
    meta: {back: "/StorageManage"},
    component: () => import("pages/posture/PostureConnect.vue"),
  }, {
    path: "/SettingIndex", meta: {title: "设置", back: "/main"}, component: () => import("pages/setting/IndexPage.vue"),
  }, {
    path: "/MicroService",
    meta: {title: "服务设置", back: "/SettingIndex"},
    component: () => import("pages/setting/MicroService.vue"),
  }, {
    path: "/SelfCalibrate",
    meta: {title: "内参标定", back: "/SettingIndex"},
    component: () => import("pages/setting/SelfCalibrate.vue"),
  }, {
    path: "/FixtureCalibrate",
    meta: {title: "夹具标定", back: "/SettingIndex"},
    component: () => import("pages/setting/FixtureCalibrate.vue"),
  }, {
    path: "/SelfInspection",
    meta: {title: "设备自检", back: "/SettingIndex"},
    component: () => import("pages/setting/SelfInspection.vue"),
  }, {
    path: "/StationCalibrate",
    meta: {title: "工位标定", back: "/SettingIndex"},
    component: () => import("pages/setting/StationCalibrate.vue"),
  }, {
    path: "/OsParameter",
    meta: {title: "参数配置", back: "/SettingIndex"},
    component: () => import("pages/setting/OsParameter.vue"),
  }, {
    path: "/BagUploading",
    meta: {title: "日志上传", back: "/SettingIndex"},
    component: () => import("pages/setting/BagUploading.vue"),
  }, {
    path: "/BatteryScheme",
    meta: {title: "换电方案", back: "/SettingIndex"},
    component: () => import("pages/setting/BatteryScheme.vue"),
  }, {
    path: "/RosMapRemote",
    meta: {title: "远程地图", back: "/main"},
    component: () => import("pages/rosMapRemote/RosMapRemote.vue"),
  }, {
    path: "/ActionPlan",
    meta: {title: "作业方案", back: "/main"},
    component: () => import("pages/ActionPlan/ActionPlan.vue"),
  }, {
    path: "/ToolManagement",
    meta: {title: "机床管理", back: "/main"},
    component: () => import("pages/ToolManagement/ToolManagement.vue"),
  }, {
    path: '/Task',
    meta: {
      title: "任务订单",
      back: "/main"
    },
    component: () => import('pages/order/IndexPage.vue')
  }],
}, // 欢迎页
  {
    path: "/", component: () => import("../pages/LoginPage.vue"),
  }, // Always leave this as last one,
  // but you can also remove it
  {
    path: "/:catchAll(.*)*", component: () => import("../pages/ErrorNotFound.vue"),
  },];

export default routes;
